package com.example.springbootgraduation.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springbootgraduation.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

//登录模块
public interface UserMapper extends BaseMapper<User> {

    /**
     * 登录SQL
     */
    @Select("select * from user where username = #{username} and password = #{password}")
    User login(@Param("username") String username, @Param("password") String password);
}
